﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="table导出到word.aspx.cs" Inherits="ProjectStudy.Word导出" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="Button1" runat="server" Text="导出word" onclick="Button1_Click" />
        <br />
        <br />
        <div runat="server" id="div1">
          <table border="1" cellpadding="0" cellspacing="0" bordercolor="black">
            <tr>
              <th>姓名</th>
              <th>年龄</th>
              <th>性别</th>
            </tr>
            <tr>
              <td>张三</td>
              <td>12</td>
              <td>男</td>
            </tr>
            <tr>
              <td>李四</td>
              <td>22</td>
              <td>女</td>
            </tr>
          </table>
        </div>
    </div>
    </form>
</body>
</html>
